<?php if ($reviews) { ?>
<?php foreach ($reviews as $review) { ?>

    <div class="user-rating-item">
        <div class="rated-users">
            <strong class="rated-name"><?php echo $review['author']; ?></strong> <em class="rated-date">(<?php echo $review['date_added']; ?>)</em>
        </div>
        <div class="rating-value col-03">
            <p class="rating fl-right">
                <span class="min-rating-star inline-block">
                    <span class="min-rating-star rated" style="width: <?php echo ($review['rating']*20);?>%;"></span>
                </span>
            </p>
            Chất Lượng:
        </div>
        <p class="comment"><?php echo $review['text']; ?></p>
    </div>
<?php } ?>
<div class="pagination"  style="float:right;"><?php echo $pagination; ?></div>
<?php } else { ?>
<div class="content"><?php echo $text_no_reviews; ?></div>
<?php } ?>
                                                     
<?php return ;?>


<?php if ($reviews) { ?>
<?php foreach ($reviews as $review) { ?>
<div class="content"><b><?php echo $review['author']; ?></b> | <img src="catalog/view/theme/default/image/stars-<?php echo $review['rating'] . '.png'; ?>" alt="<?php echo $review['reviews']; ?>" /><br />
  <?php echo $review['date_added']; ?><br />
  <br />
  <?php echo $review['text']; ?></div>
<?php } ?>
<div class="pagination"><?php echo $pagination; ?></div>
<?php } else { ?>
<div class="content"><?php echo $text_no_reviews; ?></div>
<?php } ?>
